package cn.xiongxf.service;

import cn.xiongxf.domain.CourseOrder;
import cn.xiongxf.dto.CourseOrderDTO;
import cn.xiongxf.dto.KillCourseOrderDTO;
import cn.xiongxf.dto.PayResult2MQDTO;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiongxiaofu
 * @since 2022-08-26
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(CourseOrderDTO dto);

    void saveOrderAndItems(CourseOrder courseOrder);

    void payResultHandler(PayResult2MQDTO dto);

    void cancelOrder(String orderNo);

    String killPlaceOrder(KillCourseOrderDTO dto);
}
